package com.ssyt.ec.sys.entity;

public class SysUserEntity {

	private int id;
	private String code;
	private String password;
	private String name;
	private int sex;
	private String phone;
	private String email;
	private String createTime;
	private int operateUserId;
	private String operateTime;
	private int roleId;
	private int classId;
	private int state;
	private String memo;
	// 扩展属性
	private String sysRole__name;
	private String sysClass__name;
	private String sysUser__name;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		if (sex == 1) {
			return "男";
		} else if (sex == 2) {
			return "女";
		} else {
			return "综合男女之物！！";
		}
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public int getOperateUserId() {
		return operateUserId;
	}

	public void setOperateUserId(int operateUserId) {
		this.operateUserId = operateUserId;
	}

	public String getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(String operateTime) {
		this.operateTime = operateTime;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public String getRole() {
		if (roleId == 1) {
			return "管理员";
		} else if (roleId == 2) {
			return "教师";
		} else if (roleId == 3) {
			return "学员";
		} else {
			return "没有权利的校长~~~";
		}
	}

	public int getClassId() {
		return classId;
	}

	public void setClassId(int classId) {
		this.classId = classId;
	}

	public String getStateStr() {
		if (state == 1) {
			return "启用";
		} else if (state == 2) {
			return "禁用";
		} else {
			return "用不用？";
		}
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getSysRole__name() {
		return sysRole__name;
	}

	public void setSysRole__name(String sysRole__name) {
		this.sysRole__name = sysRole__name;
	}

	public String getSysClass__name() {
		return sysClass__name;
	}

	public void setSysClass__name(String sysClass__name) {
		this.sysClass__name = sysClass__name;
	}

	public String getSysUser__name() {
		return sysUser__name;
	}

	public void setSysUser__name(String sysUser__name) {
		this.sysUser__name = sysUser__name;
	}

	public int getState() {
		return state;
	}

}
